package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface FoodbatchService {

	public Foodbatch saveFoodbatch(Foodbatch foodbatch);

	public Set<Foodbatch> loadFoodbatchs();

	public Set<Foodbatch> loadReferenceFoodbatchs(Set<Foodbatch> foodbatchs);

	public Set<Foodbatch> loadFoodbatchsByIdSet(Set<Integer> foodbatchsId);

	public Map<String, ?> loadFoodbatchObjectReferencedSet(Foodbatch foodbatch);

	public Map<String, ?> loadFoodbatchClassReferencedSet(Foodbatch foodbatch);

	public void deleteFoodbatch(Foodbatch foodbatch);

	public void deleteFoodbatchs(Set<Integer> deleteFoodbatchsId);

	public List<Foodbatch> findAllFoodbatchs(Integer startResult, Integer maxRows);

	public Foodbatch findFoodbatchByPrimaryKey(Integer id);

	public Integer countFoodbatchs();

	public Integer countFoodbatchs(CmiPagination page);

	public Integer countFoodbatchsByName(String queryName);

	public Integer countFoodbatchsByDetachedCriteria(CmiPagination page);

}
